package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.OrdersMapper;
import com.shunbo.convenient.service.OrdersService;
import com.shunbo.convenient.vo.Orders;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class OrdersServiceImpl implements OrdersService {

    @Resource
    private OrdersMapper ordersMapper;

    @Override
    public Integer save(Orders obj) {
        return ordersMapper.save(obj);
    }

    @Override
    public Integer update(Orders obj) {
        return ordersMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return ordersMapper.delete(obj);
    }

    @Override
    public Orders findById(String obj) {
        return ordersMapper.findById(obj);
    }

    @Override
    public List<Orders> findAll(Orders obj) {
        return ordersMapper.findAll(obj);
    }

    @Override
    public List<Orders> findToDay(String id) {
        return ordersMapper.findToDay(id);
    }

    @Override
    public List<Orders> findBetween(String start, String end,String id) {
        return ordersMapper.findBetween(start,end,id);
    }
}
